package com.dlink.sqljobsync.propertie;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;


@Data
@ConfigurationProperties(prefix = "dlinky.auto")
/**
 * @author huangjun
 * dlinky属性配置
 */
public class DlinkSqlProperties {
    /**
     * true: SQL脚本中：参数需要进行替换
     * false:SQL参数不做调整
     * 默认不调整参数
     */
    private boolean status = false;

    /**
     * 资源目录：filePath文件路径:classpath + "DlinkSqlSync.conf"
     *
     */
    private String filePath = "DlinkSqlSync.conf";

    public boolean isEnable() {
        return enable;
    }

    public DlinkSqlProperties setEnable(boolean enable) {
        this.enable = enable;
        return this;
    }

    /**
     * 默认dlinky sql 执行配置属性不加载
     */
    private boolean enable = false;

}
